home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 2
/
Atari Mega Archive CD - Volume 2.iso
/
minix
/
up1510b.tgz
/
up1510b
/
src
/
fs
/
buf.h.D
next >
Wrap
Text File
|
1990-07-25
|
3KB
|
53 lines
*** /tmp/,RCSt1022202 Wed Jul 25 13:48:34 1990
--- buf.h Mon Jul 23 10:35:24 1990
***************
*** 27,31 ****
struct buf *b_hash; /* used to link bufs on hash chains */
block_nr b_blocknr; /* block number of its (minor) device */
! dev_nr b_dev; /* major | minor device where block resides */
char b_dirt; /* CLEAN or DIRTY */
char b_count; /* number of users of this buffer */
--- 27,31 ----
struct buf *b_hash; /* used to link bufs on hash chains */
block_nr b_blocknr; /* block number of its (minor) device */
! dev_t b_dev; /* major | minor device where block resides */
char b_dirt; /* CLEAN or DIRTY */
char b_count; /* number of users of this buffer */
***************
*** 47,51 ****
EXTERN struct buf *front; /* points to least recently used free block */
EXTERN struct buf *rear; /* points to most recently used free block */
! EXTERN int bufs_in_use; /* # bufs currently in use (not on free list) */
/* When a block is released, the type of usage is passed to put_block(). */
--- 47,51 ----
EXTERN struct buf *front; /* points to least recently used free block */
EXTERN struct buf *rear; /* points to most recently used free block */
! EXTERN int bufs_in_use; /* # bufs currently in use (not on free list)*/
/* When a block is released, the type of usage is passed to put_block(). */
***************
*** 52,61 ****
#define WRITE_IMMED 0100 /* block should be written to disk now */
#define ONE_SHOT 0200 /* set if block not likely to be needed soon */
! #define INODE_BLOCK 0 + WRITE_IMMED /* inode block */
! #define DIRECTORY_BLOCK 1 + WRITE_IMMED /* directory block */
! #define INDIRECT_BLOCK 2 + WRITE_IMMED /* pointer block */
! #define I_MAP_BLOCK 3 + WRITE_IMMED + ONE_SHOT /* inode bit map */
! #define ZMAP_BLOCK 4 + WRITE_IMMED + ONE_SHOT /* free zone map */
! #define ZUPER_BLOCK 5 + WRITE_IMMED + ONE_SHOT /* super block */
#define FULL_DATA_BLOCK 6 /* data, fully used */
! #define PARTIAL_DATA_BLOCK 7 /* data, partly used */
--- 52,62 ----
#define WRITE_IMMED 0100 /* block should be written to disk now */
#define ONE_SHOT 0200 /* set if block not likely to be needed soon */
!
! #define INODE_BLOCK (0 + MAYBE_WRITE_IMMED) /* inode block */
! #define DIRECTORY_BLOCK (1 + MAYBE_WRITE_IMMED) /* directory block */
! #define INDIRECT_BLOCK (2 + MAYBE_WRITE_IMMED) /* pointer block */
! #define I_MAP_BLOCK (3 + WRITE_IMMED + ONE_SHOT) /* inode bit map */
! #define ZMAP_BLOCK (4 + WRITE_IMMED + ONE_SHOT) /* free zone map */
! #define ZUPER_BLOCK (5 + WRITE_IMMED + ONE_SHOT) /* super block */
#define FULL_DATA_BLOCK 6 /* data, fully used */
! #define PARTIAL_DATA_BLOCK 7 /* data, partly used*/